import { createApp } from 'vue';
import App from './App.vue';
import { setupRouter } from './router';
import { setupPageStackRouter } from './router/pageStack';
import { setupStore } from './store';
import { setupVant } from './components/registerVant';
import i18n from './lang/index.js';
// global
import './styles/index.less';
import 'animate.css';

async function bootstrap() {
  // app
  const app = createApp(App);

  setupRouter(app);
  setupPageStackRouter(app);
  setupStore(app);
  setupVant(app);
  app.use(i18n);
  app.mount('#app');
}

bootstrap();
